package com.qf.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author YDW
 * projectName:project2202_4
 * time:2022/6/22 14:50
 * description:
 */
@RestController
@Slf4j
@RequestMapping("/receive")
public class TestController {

    //更新短信的发送状态
    @PostMapping("/status")
    public String status(@RequestBody Map<String,Object> map){
        log.info("[千锋互联 客户端]接收报告成功，report={}",map);
        //业务： 更新数据库
        //返回成功的结果
        return "success";
    }
}
